<template>
    <div>
        <h4>demo2</h4>
        <p>{{ n }}</p>
    </div>
</template>
<script>
    export default{
        computed:{
            n:function(){
                return this.$store.state.n
            }
        },
        created(){
            //console.log(sessionStorage.getItem('n'))   
        }
    }
</script>